package com.ruoyi.system.domain.rsu;

/**
 * @author RHH
 * 用户升级指令，内容全部带引号
 */
public class OtaCommand {
    /**
     * 固定为“download"
     */
    final String command="download";
    /**
     * 固定为"0",带引号
     */
    final String delay_time="0";
    /**
     * 文件大小，单位是字节
     */
    String file_size = "12345";
    /**
     * 固定写死为"1 Firmware Upgrade Image"
     */
    final String file_type="1 Firmware Upgrade Image";
    /**
     * 任务编号，用于服务器端确定任务与任务应答对应
     */
    String key;
    /**
     * ftp:url地址：端口/路径
     */
    String url;
    /**
     * ftp服务器用户名
     */
    String username = "ftpuser";
    /**
     * ftp服务器密码
     */
    String password = "zdx19981006";

    public String getCommand() {
        return command;
    }

    public String getDelay_time() {
        return delay_time;
    }

    public String getFile_size() {
        return file_size;
    }

    public String getFile_type() {
        return file_type;
    }

    public String getKey() {
        return key;
    }

    public String getUrl() {
        return url;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public void setFile_size(String file_size) {
        this.file_size = file_size;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "OtaCommand{" +
                "command='" + command + '\'' +
                ", delay_time='" + delay_time + '\'' +
                ", file_size='" + file_size + '\'' +
                ", file_type='" + file_type + '\'' +
                ", key='" + key + '\'' +
                ", url='" + url + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
